package com.aiyige.base.eventbus;

import com.aiyige.base.db.table.LearnVideoModel;
import com.aiyige.base.db.table.MajorCourseDBModel;
import com.aiyige.page.publish.majorcourse.model.MajorCourseFormModel;

/**
 * Created by zhuyakun on 2017/12/6.
 */

public class EventEditMajorCourseFinish {
    public static final int RESULT_OK = 1;
    public static final int RESULT_CANCEL = 2;
    int resultCode;
    MajorCourseDBModel majorCourseDBModel;

    public EventEditMajorCourseFinish() {
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public MajorCourseDBModel getMajorCourseDBModel() {
        return majorCourseDBModel;
    }

    public void setMajorCourseDBModel(MajorCourseDBModel majorCourseDBModel) {
        this.majorCourseDBModel = majorCourseDBModel;
    }

    private EventEditMajorCourseFinish(Builder builder) {
        resultCode = builder.resultCode;
        majorCourseDBModel = builder.majorCourseDBModel;
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public static final class Builder {
        private int resultCode;
        private MajorCourseDBModel majorCourseDBModel;

        private Builder() {
        }

        public Builder resultCode(int resultCode) {
            this.resultCode = resultCode;
            return this;
        }

        public Builder majorCourseDBModel(MajorCourseDBModel majorCourseDBModel) {
            this.majorCourseDBModel = majorCourseDBModel;
            return this;
        }

        public EventEditMajorCourseFinish build() {
            return new EventEditMajorCourseFinish(this);
        }
    }
}
